/**
 * umi项目配置
 */
// ref: https://umijs.org/config/
import routes from './routes';
import proxy from './proxy';

export default {
    treeShaking: true,
    //插件
    plugins: [
        // ref: https://umijs.org/plugin/umi-plugin-react.html
        ['umi-plugin-react', {
            antd: true,
            dva: true,
            dynamicImport: { webpackChunkName: true },
            title: 'myapp',
            dll: true,
            locale: {
                enable: true,
                default: 'en-US',
            },
            //自动注册路由(已在@/config/routes文件中配置)
            /*routes: {
              exclude: [
                /models\//,
                /services\//,
                /model\.(t|j)sx?$/,
                /service\.(t|j)sx?$/,
                /components\//,
              ],
            },*/
        }],
    ],
    //路由
    routes:routes,
    //代理
    proxy:proxy,
}
